#pragma once
#include "D3DApp.h"
#include "CustomMesh.h"
//#include "Sprite.h"

class TriGrid
	: public CustomMesh
{
public:
	TriGrid();
	TriGrid(int width, int height, float dx, float dz);
	~TriGrid();

protected:
	void Update(double dt);
	void Draw(ID3DXSprite& sprite, D3DXMATRIX& view, D3DXMATRIX& proj);
	void BuildVertexBuffer();
	void BuildIndexBuffer();

private:

	D3DXHANDLE mhTime;
	float mTileWidth, mTileDepth;
	int mWidth, mDepth;
	int mNumVertices;
	int mNumFaces;
};

